package com.sailing.xjpb.orm.utils;

import org.hibernate.property.access.spi.PropertyAccess;
import org.hibernate.property.access.spi.PropertyAccessStrategy;

/**
 * 解析字段中标记@Column注解的字段
 */
public class SailingPropertyAccessStrategyImpl implements PropertyAccessStrategy {
    /**
     * Singleton access
     */
    public static final PropertyAccessStrategy INSTANCE = new SailingPropertyAccessStrategyImpl();

    @Override
    public PropertyAccess buildPropertyAccess(Class containerJavaType, String propertyName) {
        return new SailingPropertyAccessImpl(this, containerJavaType, propertyName);
    }
}
